Publicly traded U.S. tech companies have stashed as much as $530 billion in offshore tax havens. Howd they do it? Find out what magic tricks companies like .